import {defineStore} from "pinia";

const demo: Demo.Store = defineStore('demo', {
    state: (): Partial<Demo.State> => ({}), actions: {
        updateState(_state: Partial<Demo.State>) {
            this.$state = {
                ...this.$state,
                ..._state
            }
        }
    }, persist: {
        enabled: true
    }
})
export default demo